package com.seven.good.enums;

public enum StatusCodeEnum {

    SUCCESS("成功","0"),
    DATAERROR("数据验证未通过","3"),
    NOTFOUND("请求资源未找到","4"),
    ERROR("服务器错误","5");

    private String description;
    private String code;

    public String getDescription() {
        return description;
    }

    public String getCode() {
        return code;
    }

    StatusCodeEnum(String description, String code){
        this.description = description;
        this.code = code;
    }
}
